/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.crm.workorder.rule.WorkOrderRule
   Module Description   :

   Date Created      : 2010/5/21
   Original Author   : cut7man
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.crm.workorder.rule;

import com.yaodian100.core.admin.entity.Group;
import com.yaodian100.core.admin.utils.AdminHelper;
import com.yaodian100.core.common.utils.JspUtil;
import com.yaodian100.crm.workorder.entity.WorkOrder;

/**
 * @author cut7man
 *
 */
public class WorkOrderRule {
    public static String line1="C.01";
    public static String line2="C.02";
    public static boolean answerNeedToBeApproved(WorkOrder wo){
	Group userGroup=JspUtil.getGroupByUsername(AdminHelper.getUserDetails().getUsername());
	if(userGroup.getCode().equals(line1)){
	    return true;
	}
	return false;
	
    }
    public static boolean forwardNeedToBeApproved(WorkOrder wo){
	Group userGroup=JspUtil.getGroupByUsername(AdminHelper.getUserDetails().getUsername());
	if(userGroup.getCode().equals(line1)){
	    return true;
	}
	return false;
    }
}
